package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 应收款对象 receivable
 * 
 * @author ruoyi
 * @date 2025-02-18
 */
public class Receivable extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 流水号 */
    @Excel(name = "流水号")
    private String serialNumber;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 财务类别ID */
    @Excel(name = "财务类别ID")
    private Long financeCategoryId;

    /** 付款方 */
    @Excel(name = "付款方")
    private String payer;

    /** 应收金额 */
    @Excel(name = "应收金额")
    private BigDecimal receivableAmount;

    /** 付款次数 */
    @Excel(name = "付款次数")
    private Long paymentTimes;

    /** 实收金额 */
    @Excel(name = "实收金额")
    private BigDecimal actualReceivedAmount;

    /** 收款方 */
    @Excel(name = "收款方")
    private String payee;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 最后付款日 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后付款日", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastPaymentDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSerialNumber(String serialNumber) 
    {
        this.serialNumber = serialNumber;
    }

    public String getSerialNumber() 
    {
        return serialNumber;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setFinanceCategoryId(Long financeCategoryId) 
    {
        this.financeCategoryId = financeCategoryId;
    }

    public Long getFinanceCategoryId() 
    {
        return financeCategoryId;
    }
    public void setPayer(String payer) 
    {
        this.payer = payer;
    }

    public String getPayer() 
    {
        return payer;
    }
    public void setReceivableAmount(BigDecimal receivableAmount) 
    {
        this.receivableAmount = receivableAmount;
    }

    public BigDecimal getReceivableAmount() 
    {
        return receivableAmount;
    }
    public void setPaymentTimes(Long paymentTimes) 
    {
        this.paymentTimes = paymentTimes;
    }

    public Long getPaymentTimes() 
    {
        return paymentTimes;
    }
    public void setActualReceivedAmount(BigDecimal actualReceivedAmount) 
    {
        this.actualReceivedAmount = actualReceivedAmount;
    }

    public BigDecimal getActualReceivedAmount() 
    {
        return actualReceivedAmount;
    }
    public void setPayee(String payee) 
    {
        this.payee = payee;
    }

    public String getPayee() 
    {
        return payee;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setLastPaymentDate(Date lastPaymentDate) 
    {
        this.lastPaymentDate = lastPaymentDate;
    }

    public Date getLastPaymentDate() 
    {
        return lastPaymentDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("serialNumber", getSerialNumber())
            .append("name", getName())
            .append("financeCategoryId", getFinanceCategoryId())
            .append("payer", getPayer())
            .append("receivableAmount", getReceivableAmount())
            .append("paymentTimes", getPaymentTimes())
            .append("actualReceivedAmount", getActualReceivedAmount())
            .append("payee", getPayee())
            .append("status", getStatus())
            .append("lastPaymentDate", getLastPaymentDate())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .toString();
    }
}
